package cgLibProxy;

public class UserServiceImpl {
    public UserServiceImpl(){
        System.out.println("gou_zao");
    }

    /**
     * 该方法不能被子类覆盖,Cglib是无法代理final修饰的方法的
     */
    final public String sayOthers(String name) {
        System.out.println("HelloService:sayOthers>>"+name);
        return null;
    }

    public void doWork() {
        System.out.println("do Work....");
    }
}
